package ex2.trans;

import ex2.Employee;
import ex2.PaymentMethod;

public abstract class ChangeMethodTransaction extends ChangeEmployeeTransaction {

    public ChangeMethodTransaction(int empId) {
        super(empId);
    }

    @Override
    protected void doChange(Employee e) {
        e.setPaymentMethod(getPaymentMethod());
    }

    protected abstract PaymentMethod getPaymentMethod();
}
